
enum {
        LOG_DEBUG, /* Library is logging debug data:. */
        LOG_CLIENT, /* The client is logging information. */
        LOG_LIB, /* The library is logging an action. */
        LOG_CALLBACK /* A callback is logging an action. */
};

struct pkg_logger {
        /* Namem of the package doing the logging. */
        const char *pkg_name;
        /* Prefix that we can use to state where the log
        entry is coming from. */
        const char *prefix;
        int syslog; /* Send messages to syslog. */
        FILE *log_fp;
        const char *logfile;
        TAILQ_HEAD(logger_head, pkg_logger_entry) head;
        struct pkg_logger_entry *last;
};
